class CreateErrors < ActiveRecord::Migration
  def self.up
    create_table "application_errors", :force => true do |t|
      t.column 'subject', :text
      t.column 'content', :text
      t.column 'user_id', :integer
      t.column 'created_at', :datetime
      t.column 'updated_at', :datetime
      t.column 'phase', :integer, :default => 0
      t.column 'status', :string, :default => 'new'
    end
  end

  def self.down
    drop_table "application_errors"
  end
end
